﻿@model IEnumerable<SienSchoofsProject.Models.UserProfile>

@{
    ViewBag.Title = Resources.AdminSection;
}
<hgroup class="title">
    <h1>@ViewBag.Title</h1>
</hgroup>
<div id="content">
    <table>
        <tbody>
            <tr>
                <th>
                    <u>@Resources.ChangeRoleTitle</u>
                </th>
            </tr>

            @foreach (var user in Model)
            {
                using (Html.BeginForm("ChangeRole", "Admin", FormMethod.Post, new { id = "formRollen" }))
                {               
                <tr>
                    <td>
                        @user.UserName
                        <input type="hidden" value="@user.UserName" name="username" />
                    </td>
                    <td>
                        <input type="submit" value="@Resources.Change" class="btn" />
                    </td>
                </tr>
                }
            }
        </tbody>
    </table>
</div>
